<?php /* Smarty version 2.6.26, created on 2018-07-05 16:54:27
         compiled from D:%5Cwww%5Cvweb/admin%5Ctemplates/article/comment.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'D:\\www\\vweb/admin\\templates/article/comment.html', 29, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<div class="nav">
	<span>用户留言</span> 
</div>
<div class="main"> 
	<table width="100%" class="ltable">
	  	<thead>
		  	<tr>
				<th width="80">ID</th>
				<th width="100">用户</th> 
				<th>留言信息</th> 
				<th width="60">状态</th> 
				<th width="60">操作</th>
				<th width="110">时间</th>
		  	</tr>
	  	</thead>
		<?php if ($this->_tpl_vars['data']['list']): ?>		
			<tbody> 
				<?php $_from = $this->_tpl_vars['data']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
					<tr>
						<td><?php echo $this->_tpl_vars['i']['comment_id']; ?>
</td>
						<td><a href="admin.php?m=user&a=enter&uid=<?php echo $this->_tpl_vars['i']['uid']; ?>
" target="_blank"><?php echo $this->_tpl_vars['i']['nick']; ?>
</a></td> 
						<td>
							<?php echo $this->_tpl_vars['i']['content']; ?>
 
							<span class="ttl"><a href="?m=article&a=show&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank"><?php echo $this->_tpl_vars['i']['title']; ?>
</a></span>
						</td> 
						<td><a href="javascript:;" class="pass" msg_id="<?php echo $this->_tpl_vars['i']['comment_id']; ?>
"><img src="public/images/status_<?php echo $this->_tpl_vars['i']['pass']; ?>
.gif"/></a></td>  
						<td><a href="admin.php?m=article&a=comment_del&id=<?php echo $this->_tpl_vars['i']['comment_id']; ?>
">删除</a></td>
						<td><?php echo ((is_array($_tmp=$this->_tpl_vars['i']['addtime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d %H:%M') : smarty_modifier_date_format($_tmp, '%Y-%m-%d %H:%M')); ?>
'</td>
					</tr>
				<?php endforeach; endif; unset($_from); ?>
			</tbody>
		<?php else: ?>
	  		<tr><td colspan="6"><div class="nomsg">暂无数据</div></td></tr>
		<?php endif; ?> 
	</table>
	<?php if ($this->_tpl_vars['data']['page']): ?><div class="page"><?php echo $this->_tpl_vars['data']['page']; ?>
</div><?php endif; ?>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<script type="text/javascript">
$(function(){
	$(".pass").click(function(){
		$this = $(this);
		var id = $this.attr('msg_id');
		$.post('admin.php?m=article&a=ajax_comment_pass',{id:id},function(data){ 
			$('img',$this).attr('src','public/images/status_'+data+'.gif');
		});  
	});
	
});
</script>